package name.fowler.refactoring.simplestore;

public class ChildrensRental extends Rental {

	public ChildrensRental(Movie movie, int daysRented) {
		super(movie, daysRented);
	}

	public double getAmount() {
		double thisAmount = 0;
		thisAmount += 1.5;
		if (getDaysRented() > 3) {
			thisAmount = (getDaysRented() - 3) * 1.5;
		}
		return thisAmount;
	}
}
